<script setup>
  import {ref} from "vue";

  const name=ref('张先生');
  const url=ref('https://www.baidu.com');
  url.value='https://www.jd.com';
</script>

<template>
  <h1>属性绑定指令</h1>
  <input type="text" value="name">
  <input type="text" v-bind:value="name">
  <input type="text" :value="name">
  <hr>
  <a href="url">超链接</a>
  <hr>
  <a :href="url" target="_blank">超链接</a>
</template>

<style scoped>

</style>